package com.gxa.modules.model.entity.hospital;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 体检预约信息
 * </p>
 *
 * @author yjl
 * @since 2022-11-13 05:47:51
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_medical_record")
@ApiModel(value = "MedicalRecord对象", description = "体检预约信息")
public class MedicalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("体检预约表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("预约时间")
    @TableField("appointment_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private Date appointmentTime;

    @ApiModelProperty("总价格")
    @TableField("sum")
    private Double sum;

    @ApiModelProperty("体检费")
    @TableField("cost_type")
    private String costType;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("ending_time")
    private Date endingTime;

    @ApiModelProperty("报到地点")
    @TableField("place")
    private String place;

    @ApiModelProperty("候诊时间")
    @TableField("waiting_time")
    private String waitingTime;

    @ApiModelProperty("状态（0 未支付1 已支付）")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("套餐id")
    @TableField("package_id")
    private Integer packageId;

    @ApiModelProperty("数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty("患者id")
    @TableField("patient_id")
    private Integer patientId;


}
